import { get_time_normal_to_format } from '../../../../../../../../../../../../global/Func/get_cur_format_time';
import {
  file_suffix_js,
  path_file_user_prefix,
} from '../../../../../../../../../DataDefine/file_path';
import { spacename_functions } from '../../../../../DataDefine/sourceData';

export function get_file_path_cur_user_function(
  identity: string,
  uni_float_id: string
) {
  return `${path_file_user_prefix}/${identity}/${spacename_functions}/${uni_float_id}/${spacename_functions}_${uni_float_id}.${file_suffix_js}`;
}

export function get_file_path_cur_user_function_time(
  req_time: string,
  identity: string,
  uni_float_id: string
) {
  req_time = get_time_normal_to_format(req_time);
  return `${path_file_user_prefix}/${identity}/${spacename_functions}/${uni_float_id}/${spacename_functions}_${uni_float_id}_${req_time}.${file_suffix_js}`;
}
